package com.wanxi.education.mapper;

import com.wanxi.education.model.vo.statistic.RankOfStudentPurchasedCourseVO;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @Author: Kang
 * @Date: 2021/9/27 9:35
 * @Description: B端统计持久层
 * @Version: 1.0
 */
public interface BStatisticMapper {

    /**
     * 机构学员购买课程总数排名前七
     * @param loginBId
     * @return
     */
    Set<RankOfStudentPurchasedCourseVO> rankOfStudentPurchasedCourse(@Param("loginBId") Long loginBId);

    /**
     * 当前机构注册学员总数
     * @param loginBId
     * @return
     */
    Long totalNumberOfEmployees(@Param("loginBId") Long loginBId);

    /**
     * 当前机构总购课数量
     * @param loginBId
     * @return
     */
    Long totalNumberOfCoursePurchased(@Param("loginBId") Long loginBId);

}
